package com.qf.qfuser.feigns;

import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class OrderServiceFallbackFacotry implements FallbackFactory<OrderServiceFeign> {
    @Override
    public OrderServiceFeign create(Throwable throwable) {
        throwable.printStackTrace();
        return new OrderServiceFeignFallback();
    }
}
